<?php
if($_FANWE['uid'] == 0)
	exit;

$img = FS('Image')->save('custom','temp',true,array('custom'=>array(960,330,1)),true);
if($img['thumb']['custom']['url'] === false)
	$img['thumb']['custom']['url'] = "";
outputJson(array('src'=>$img['thumb']['custom']['url']));
?>